package org.itboys.product.dto;

import org.itboys.product.entity.Order;

/**
 * Created by huml on 2016/5/12.
 * 订单缓存实体
 */
public class OrderDto {

    private String orderNo;
    private Long orderId;
    private Long memberId;
    private Integer status;
    private boolean isLock = false;

    public OrderDto(){}

    public OrderDto(Order order){
        this.orderId = order.getId();
        this.orderNo = order.getOrderNo();
        this.status = order.getStatus();
        this.memberId = order.getMemberId();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public boolean isLock() {
        return isLock;
    }

    public void setLock(boolean lock) {
        isLock = lock;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }
}
